<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
<div id="app">

    <div v-cloak>{{msg}}</div>
    <div :key='item.id' v-for='(item, index) in imgs'>
        <img :src="item.path">
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2" type="text/javascript"></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            msg: 'Hello Vue,你好Vue',
            imgs: [{
                id: 1,
                title: '美女',
                path: './img/3.jpg'
            }]
        }
    });
</script>
</body>

</html>